Skip to content

docs: align JavaScript SDK documentation - #993

Merged
jonathannorris merged 2 commits into
mainfrom
docs-sdk-javascript
Aug 7, 2026
Merged

docs: align JavaScript SDK documentation#993
jonathannorris merged 2 commits into
mainfrom
docs-sdk-javascript

Conversation

@jonathannorris

@jonathannorris jonathannorris commented Aug 6, 2026

Copy link
Copy Markdown
Member

Summary

  • Align JavaScript, React, React Native, Angular, Next.js, Node.js, and NestJS docs with current package APIs and requirements.
  • Correct initialization examples, runtime requirements, provider access, bootstrapping keys, and React Native usage.

Validation

  • Docusaurus build passed
  • git diff --check passed

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 6, 2026

Copy link
Copy Markdown

Deploying devcycle-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 623f2e3
Status: ✅  Deploy successful!
Preview URL: https://10bc6152.devcycle-docs.pages.dev
Branch Preview URL: https://docs-sdk-javascript.devcycle-docs.pages.dev

View logs

@jonathannorris
jonathannorris marked this pull request as ready for review August 6, 2026 18:11
Copilot AI review requested due to automatic review settings August 6, 2026 18:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates multiple JavaScript-family SDK docs (Node.js, NestJS, React, React Native, Next.js, Angular, and plain JS) to reflect current initialization APIs, runtime requirements, and usage patterns.

Changes:

  • Updates Node.js/NestJS initialization and bootstrapping guidance (including runtime requirements and bootstrapping key usage).
  • Refreshes client-side framework docs (React helpers, React Native examples/requirements, Next.js and Angular usage notes).
  • Aligns JavaScript client SDK documentation with current logging and bootstrapping options.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
docs/sdk/server-side-sdks/node/node.md Adds a stated minimum Node.js runtime requirement.
docs/sdk/server-side-sdks/node/node-gettingstarted.md Updates Node.js SDK initialization examples and options usage.
docs/sdk/server-side-sdks/node/node-bootstrapping.md Clarifies bootstrapping prerequisites and the bootstrap config client key field name.
docs/sdk/server-side-sdks/nestjs/nestjs-gettingstarted.md Clarifies NestJS module bucketing mode and fixes the async userFactory example.
docs/sdk/client-side-sdks/react/react-usage.md Adds conditional rendering helper documentation and an example.
docs/sdk/client-side-sdks/react-native/react-native.md Updates stated React Native / React version requirements.
docs/sdk/client-side-sdks/react-native/react-native-usage.md Fixes React Native example to use RN components and correct boolean defaults.
docs/sdk/client-side-sdks/react-native/react-native-expo-install.md Updates Expo dependency install guidance and clarifies SSE dependency expectations.
docs/sdk/client-side-sdks/nextjs/nextjs-usage-app.md Exposes track from setup and updates realtime updates/version guidance.
docs/sdk/client-side-sdks/javascript/javascript-gettingstarted.md Updates logging option terminology and adds a bootstrapping option to the options table.
docs/sdk/client-side-sdks/angular/angular-usage.md Updates DevCycle client access pattern and removes trailing whitespace.
Suppressed comments (1)

docs/sdk/server-side-sdks/node/node-gettingstarted.md:52

  • This JS snippet uses CommonJS require(...) but also uses await at top level. Either wrap the snippet in an async function or switch the JS example to a promise chain so it runs as-written in CommonJS.
const devcycleClient = await initializeDevCycle(
  '<DEVCYCLE_SERVER_SDK_KEY>',
  {
    // Insert Options
  },

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/sdk/client-side-sdks/javascript/javascript-gettingstarted.md
Comment thread docs/sdk/client-side-sdks/nextjs/nextjs-usage-app.md
Comment thread docs/sdk/client-side-sdks/javascript/javascript-gettingstarted.md
Comment thread docs/sdk/server-side-sdks/node/node-gettingstarted.md Outdated
@jonathannorris
jonathannorris enabled auto-merge (squash) August 7, 2026 17:56
@jonathannorris
jonathannorris merged commit d57cd3c into main Aug 7, 2026
5 checks passed
@jonathannorris
jonathannorris deleted the docs-sdk-javascript branch August 7, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants